home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Shareware
/
IDimager Personal 4.2.0.3
/
setup_IDimager_Personal_V4.exe
/
{app}
/
web
/
modules
/
galleryimages.psc
< prev
next >
Wrap
Text File
|
2008-06-11
|
1KB
|
50 lines
%include uservalidate.inc %/include
%code
%include storeddata.inc %/include
%include resulttable.inc %/include
var
AItems: TCatalogItems;
AGall: TImageGallery;
i: Integer;
begin
if not FindStoredData ('dsITEMS', AItems, False) then
begin
AItems := TCatalogItems.Create (TCatalogItem, '');
StoreData ('dsITEMS', AItems);
end;
if AItems.GUID <> Request.Params.Values['GUID'] then
begin
AItems.Clear;
AItems.LastSort := csPhotoDate;
AItems.LastSortOrder := stAscending;
AGall := TImageGallery.Create(nil);
AGall.GUID := Request.Params.Values['GUID'];
Catalog.EnumModelGallery (AGall, False);
Catalog.EnumPhotosGallery (AGall, AItems, vptAlbumDisplay);
AItems.Name := toWideString('');
AItems.GUID := Request.Params.Values['GUID'];
if Catalog.GalleryHasCollections (AGall) then
AItems.Name := AItems.Name +
'';
AItems.Name := AItems.Name +
AGall.GalleryName +
'<span class="small"><br/>';
AItems.Name := AItems.Name + '</span>';
AGall.Free;
end;
result := IncludeResultTable (AItems, 'dsITEMS', 1, 0, 0);
end;
%/code